package com.sora.sora.common.mapper;

import com.sora.sora.common.model.entity.ArticleEntity;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ArticleMapper {

    int count();

    ArticleEntity queryById(int id);

    int add(ArticleEntity entity);

    int delete(int id);

    int update(int id, String content);

    int updateApperance(int id, int view, int like, int collection);
}
